package ModelLayer;

import java.util.ArrayList;

/**
 * Write a description of class DVD here.
 * 
 * @author (DM80 Group 5, Anders, Michael, Jesper, Lars og Kenni) 
 * @version (16/11-2012)
 */
public class DVD
{
    private int id;
    private String title;
    private String artist;
    private String releaseDate;
    private String description;
    private ArrayList<Sample> samples;

    /**
     * Constructor for objects of class DVD
     */
    public DVD(int _id, String _title, String _artist, String _releaseDate, String _description)
    {
        id = _id;
        title = _title;
        artist = _artist;
        releaseDate = _releaseDate;
        description = _description;
        samples = new ArrayList<Sample>();
    }

    /**
     * An example of a method - replace this comment with your own
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */

    public int getId()
    {
        return id;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public String getArtist()
    {
        return artist;
    }
    
    public String getReleaseDate()
    {
        return releaseDate;
    }
    
    public String getDescription()
    {
        return description;
    }
    
    public ArrayList<Sample> getAllSamples()
    {
        return samples;
    }
    
    public void setId(int _id)
    {
        id = _id;
    }
    
    public void setTitle(String _title)
    {
        title = _title;
    }
    
    public void setArtist(String _artist)
    {
        artist = _artist;
    }
    
    public void setReleaseDate(String _releaseDate)
    {
        releaseDate = _releaseDate;
    }
    
    public void setDescription(String _description)
    {
        description = _description;
    }
    
    public void addSample(Sample _sample)
    {
        samples.add(_sample);
    }
}
